import { ProgressBar, Tween, tween } from "cc";

export default class UITools {
    static tweenProgressBar(proBar:ProgressBar,time:number = 1):Tween<ProgressBar>{
        proBar.progress = 0;
        let tw = tween(proBar)
        .to(time, { progress: 1 }, { easing: 'linear' })
        .start();
        return tw;
    }
}


